home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18388 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.usa.net!usenet
  2. From: bertie@Sigma.Epsilon.Chi.org (Bertram Wooster)
  3. Newsgroups: comp.lang.c,comp.lang.c++,comp.unix.programmer
  4. Subject: Re: itoa() in C for unix >>>
  5. Date: 20 Apr 1996 06:17:58 GMT
  6. Organization: The Drone's Club
  7. Message-ID: <4l9vim$nas@shiva.usa.net>
  8. References: <1996Apr12.121207@topaz> <4l44mv$g0a@news.accent.net>
  9. Reply-To: alberts@usa.net
  10. NNTP-Posting-Host: sean.com
  11. X-Newsreader: WinVN 0.92.2
  12.  
  13. In article <4l44mv$g0a@news.accent.net>, dallaire@megatoon.com (Guy Dallaire) says:
  14. >
  15. >naderr@topaz.cqu.edu.au wrote:
  16. >
  17. >>Hi,
  18. >
  19. >>Does anyone have or know of where I may obtain a itoa()
  20. >
  21. >If you really can't find it, use sprintf instead...
  22. >
  23. >Ex.: sprintf(szString, "%d", iValue);
  24. >
  25. >This will place the string version of iValue into szString.  You can
  26. >use all of printf's flags too.
  27. >
  28. >                        Hope this helps
  29. >Guy Dallaire
  30. >Groupe DMR Inc.
  31. >dallaire@megatoon.com
  32. >
  33. >P.S. My opinions are my own and do not reflect those of my employer
  34. >
  35.  
  36. For the record, when I needed this function I searched *all over*
  37. my system and couldn't find it.  I ended up using the function as
  38. defined in K&R's C Prog. Lang. (2nd ed.).  Your way is better!
  39.  
  40.